<template>
  <div id="app">
    <el-button type="primary" @click="handleClick">按钮</el-button>
    <el-button type="danger" round @click="handleClick1">按钮</el-button>
  </div>
</template>

<script>
export default {
  name: "App",
  methods: {
    handleClick() {
      this.$message({
        type: "success",
        message: "成功~~~~",
      });
    },
    handleClick1() {
      this.$message({
        type: "error",
        message: "失败~~~~",
      });
    },
  },
};
</script>

<style>
</style>
